cd ./
rm -rf ./htdocs && mkdir htdocs
##
rsync -av ../registry-core/target/registry-core/* htdocs/registry/
rsync -av ../registry-core/target/registry-core/WEB-INF/lib/registry-core.jar htdocs/registry-jar/
rsync -av ../registry-core/target/registry-core/WEB-INF/lib/config-core-1.0.jar htdocs/registry-jar/
rm -f htdocs/registry/WEB-INF/lib/*.jar
rsync -av htdocs/registry-jar/*.jar htdocs/registry/WEB-INF/lib/
rm -rf htdocs/registry-jar/
rm -rf htdocs/registry/WEB-INF/classes/com/
##
rsync -av ../service-core/course-service/target/course-service/* htdocs/course/
rsync -av ../service-core/course-service/target/course-service/WEB-INF/lib/common-1.0.jar htdocs/course-jar/
rsync -av ../service-core/course-service/target/course-service/WEB-INF/lib/data-source-1.0.jar htdocs/course-jar/
rsync -av ../service-core/course-service/target/course-service/WEB-INF/lib/config-core-1.0.jar htdocs/course-jar/
rsync -av ../service-core/course-service/target/course-service/WEB-INF/lib/course-service.jar htdocs/course-jar/
rm -f htdocs/course/WEB-INF/lib/*.jar
rsync -av htdocs/course-jar/*.jar htdocs/course/WEB-INF/lib/
rm -rf htdocs/course-jar/
rm -rf htdocs/course/WEB-INF/classes/com/
##
rsync -av ../service-core/base-service/target/base-service/* htdocs/base/
rsync -av ../service-core/base-service/target/base-service/WEB-INF/lib/common-1.0.jar htdocs/base-jar/
rsync -av ../service-core/base-service/target/base-service/WEB-INF/lib/data-source-1.0.jar htdocs/base-jar/
rsync -av ../service-core/base-service/target/base-service/WEB-INF/lib/config-core-1.0.jar htdocs/base-jar/
rsync -av ../service-core/base-service/target/base-service/WEB-INF/lib/base-service.jar htdocs/base-jar/
rm -f htdocs/base/WEB-INF/lib/*.jar
rsync -av htdocs/base-jar/*.jar htdocs/base/WEB-INF/lib/
rm -rf htdocs/base-jar/
rm -rf htdocs/base/WEB-INF/classes/com/
##
rsync -av ../service-core/exam-service/target/exam-service/* htdocs/exam/
rsync -av ../service-core/exam-service/target/exam-service/WEB-INF/lib/common-1.0.jar htdocs/exam-jar/
rsync -av ../service-core/exam-service/target/exam-service/WEB-INF/lib/data-source-1.0.jar htdocs/exam-jar/
rsync -av ../service-core/exam-service/target/exam-service/WEB-INF/lib/config-core-1.0.jar htdocs/exam-jar/
rsync -av ../service-core/exam-service/target/exam-service/WEB-INF/lib/exam-service.jar htdocs/exam-jar/
rm -f htdocs/exam/WEB-INF/lib/*.jar
rsync -av htdocs/exam-jar/*.jar htdocs/exam/WEB-INF/lib/
rm -rf htdocs/exam-jar
rm -rf htdocs/exam/WEB-INF/classes/com/
##
rsync -av ../web-core/admin/target/admin/* htdocs/admin/
rsync -av ../web-core/admin/target/admin/WEB-INF/lib/common-1.0.jar htdocs/admin-jar/
rsync -av ../web-core/admin/target/admin/WEB-INF/lib/config-core-1.0.jar htdocs/admin-jar/
rsync -av ../web-core/admin/target/admin/WEB-INF/lib/admin.jar htdocs/admin-jar/
rm -f htdocs/admin/WEB-INF/lib/*.jar
rsync -av htdocs/admin-jar/*.jar htdocs/admin/WEB-INF/lib/
rm -rf htdocs/admin-jar
rm -rf htdocs/admin/WEB-INF/classes/com/
##
rsync -av ../web-core/h5/target/h5/* htdocs/h5/
rsync -av ../web-core/h5/target/h5/WEB-INF/lib/common-1.0.jar htdocs/h5-jar/
rsync -av ../web-core/h5/target/h5/WEB-INF/lib/config-core-1.0.jar htdocs/h5-jar/
rsync -av ../web-core/h5/target/h5/WEB-INF/lib/h5.jar htdocs/h5-jar/
rm -f htdocs/h5/WEB-INF/lib/*.jar
rsync -av htdocs/h5-jar/*.jar htdocs/h5/WEB-INF/lib/
rm -rf htdocs/h5-jar/
rm -rf htdocs/h5/WEB-INF/classes/com/
##
rsync -av ../web-core/app/target/app/* htdocs/app/
rsync -av ../web-core/app/target/app/WEB-INF/lib/common-1.0.jar htdocs/app-jar/
rsync -av ../web-core/app/target/app/WEB-INF/lib/config-core-1.0.jar htdocs/app-jar/
rsync -av ../web-core/app/target/app/WEB-INF/lib/app.jar htdocs/app-jar/
rm -f htdocs/app/WEB-INF/lib/*.jar
rsync -av htdocs/app-jar/*.jar htdocs/app/WEB-INF/lib/
rm -rf htdocs/app-jar/
rm -rf htdocs/app/WEB-INF/classes/com/
##
rsync -av ../web-core/front/target/front/* htdocs/front/
rsync -av ../web-core/front/target/front/WEB-INF/lib/common-1.0.jar htdocs/front-jar/
rsync -av ../web-core/front/target/front/WEB-INF/lib/config-core-1.0.jar htdocs/front-jar/
rsync -av ../web-core/front/target/front/WEB-INF/lib/front.jar htdocs/front-jar/
rm -f htdocs/front/WEB-INF/lib/*.jar
rsync -av htdocs/front-jar/*.jar htdocs/front/WEB-INF/lib/
rm -rf htdocs/front-jar/
rm -rf htdocs/front/WEB-INF/classes/com/
##
rsync -av ../web-core/res/target/res/* htdocs/res/
rsync -av ../web-core/res/target/res/WEB-INF/lib/common-1.0.jar htdocs/res-jar/
rsync -av ../web-core/res/target/res/WEB-INF/lib/config-core-1.0.jar htdocs/res-jar/
rsync -av ../web-core/res/target/res/WEB-INF/lib/res.jar htdocs/res-jar/
rm -f htdocs/res/WEB-INF/lib/*.jar
rsync -av htdocs/res-jar/*.jar htdocs/res/WEB-INF/lib/
rm -rf htdocs/res-jar/
rm -rf htdocs/res/WEB-INF/classes/com/
##